<!--
 * @Author        zzx
 * @Date          2024-09-24 17:13:32
 * @LastEditTime  2024-09-24 19:24:00
 * @LastEditors   zzx
 * @Description   功能描述
-->
{% extends 'layouts/base.html' %}

{% block title %} Tables {% endblock title %}

<!-- Specific CSS goes HERE -->
{% block stylesheets %}{% endblock stylesheets %}

{% block content %}



  <div class="min-height-300 bg-primary position-absolute w-100"></div>
      
  {% include "includes/sidenav.html" %}

  <main class="main-content position-relative border-radius-lg ">

    % include "includes/navigation.html" %}
<div class="container mt-5">
   
    <form action="{{ url_for('home_blueprint.update_item', item_id=item.id) }}" method="POST">
        <div class="card mb-3">
            <div class="card-header pb-0">
                <h6>Edit Item</h6>
              </div>
              <div class="card-body">
                <label for="name" class="form-label">Name</label>
                <input type="text" class="form-control" id="name" name="name" value="{{ item.name }}" required>
    
                <label for="name" class="form-label">ip</label>
                <input type="text" class="form-control" id="ip" name="ip" value="{{ item.ip }}" required>
    
    
                <label for="name" class="form-label">servers_id</label>
                <input type="text" class="form-control" id="servers_id" name="servers_id" value="{{ item.servers_id }}" required>
              </div>

        </div>
        <button type="submit" class="btn btn-success">Update</button>
    </form>
</div>
{% include "includes/footer.html" %}

</div>

</main>

<!-- <script>
function change_event(id){console.log(id,"-================")}
</script> -->

{% endblock content %}

<!-- Specific JS goes HERE --> 
{% block javascripts %}{% endblock javascripts %}